home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / bbe_v505.arc / BBERUN.BAT < prev    next >
DOS Batch File  |  1990-09-20  |  1KB  |  63 lines

  1. Rem --------------------------------------------------------------------
  2. Rem - Example of a 'All singing, all dancing' BBE batch file           -
  3. Rem - with QuickBBS <tm>                                               -
  4. Rem --------------------------------------------------------------------
  5. Rem
  6. Rem --------------------------------------------------------------------
  7. Rem - General loop (COM2 is used)                                      -
  8. Rem --------------------------------------------------------------------
  9. :Loop
  10. BBE 2
  11. If Errorlevel 64 goto Time
  12. If Errorlevel 36 goto Hang
  13. If Errorlevel 32 goto Mailer
  14. If Errorlevel 30 goto QBBS_300
  15. If Errorlevel 24 goto QBBS_2400
  16. if Errorlevel 12 goto QBBS_1200
  17. If Errorlevel  8 goto Error
  18. If Errorlevel  2 goto QBBS_Local
  19. If Errorlevel  1 goto End
  20. Goto End
  21.  
  22. :QBBS_2400
  23. quickbbs -B2400 -E0
  24. goto Tests
  25.  
  26. :QBBS_1200
  27. quickbbs -B1200 -E0
  28. goto Tests
  29.  
  30. :QBBS_300
  31. quickbbs -B300 -E0
  32. goto Tests
  33.  
  34. :QBBS_Local
  35. quickbbs -L
  36. goto Tests
  37.  
  38. :Tests
  39. If Errorlevel 6 goto Event
  40. goto loop
  41.  
  42. :Event
  43. REM QuickBBS event overhere
  44. Goto Loop
  45.  
  46. :Time
  47. REM BBE has an event
  48. REM Do something or end
  49. Goto End;
  50.  
  51. :Hang
  52. ECHO User disconnected [HANG option]
  53. Goto Loop
  54.  
  55. :Mailer
  56. ECHO Mailer called
  57. Goto Loop
  58.  
  59. :Error
  60. ECHO Fatal error in BBE
  61.  
  62. :End
  63.